package com.stox.client.ui.javafx.screener.widget;

import javafx.scene.control.ContextMenu;

import com.stox.client.core.model.intf.HasNavigable;
import com.stox.client.core.model.intf.Navigable;
import com.stox.client.ui.javafx.widget.ContextMenuConfigurerRegistry;
import com.stox.shared.model.ScripWrapper;

public class ScanResultContextMenu extends ContextMenu implements
		HasNavigable<ScripWrapper> {
	
	private final ScripWrapperTableView scripWrapperTableView;
	
	public ScanResultContextMenu(ScripWrapperTableView scripWrapperTableView) {
		this.scripWrapperTableView = scripWrapperTableView;
		ContextMenuConfigurerRegistry.getInstance().attachContextMenu(this);
	}
	
	@Override
	public Navigable<ScripWrapper> getNavigable() {
		return scripWrapperTableView.getNavigable();
	}

}
